//axios基础封装
import axios from "axios";
let httpInstance =  axios.create({
  baseURL:'http://pcapi-xiaotuxian-front-devtest.itheima.net',

  //项目基地址
  timeout:5000
})

//拦截器
// axios请求拦截器
httpInstance.interceptors.request.use(config=>{return config},e=>Promise.reject(e))

// axios响应式拦截器
httpInstance.interceptors.response.use(res=>res.data,e=>Promise.reject(e))

export default httpInstance
